package com.wxw.BaseLibrary.component.gridlist;

import android.graphics.Color;
import android.view.Gravity;
import com.wxw.BaseLibrary.element.IDataGridCellViewAgent;

/**
 * Created by david on 2017-02-09.
 */
public class GridListViewColumn {
    public String Name = "";
    public String key = "";
    public int TextGravity = Gravity.CENTER;
    public String FloatFormat = "";
    public int Width = 0;
    public int[] BgColors = null;
    public int fontColor = Color.BLACK;
    public IDataGridCellViewAgent DataGridCellViewAgent = null;

    public GridListViewColumn(String name, int textGravity, String floatFormat, int width) {
        Name = name;
        TextGravity = textGravity;
        FloatFormat = floatFormat;
        Width = width;
    }

    public GridListViewColumn(String name, int textGravity, String floatFormat, int width, int[] bgColors) {
        this(name, textGravity, floatFormat, width);
        BgColors = bgColors;
    }

    public GridListViewColumn(String name, int textGravity, String floatFormat, int width, int[] bgColors, IDataGridCellViewAgent agent) {
        this(name, textGravity, floatFormat, width, bgColors);
        DataGridCellViewAgent = agent;
    }
}
